package com.ks.app.navigate.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * KsWebsite entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="KS_WEBSITE")
public class KsWebsite  implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	// Fields    

	private long id;            //主键
    private long navigateid;    //所属导航条
    private String name;        //站点名称
    private String url;         //站点地址
    private int status;         //站点状态：2 上线，1 下线
    private int recommend;      //是否推荐  1 未推荐，2 推荐
    private String logo;        //logo图片地址
    private int ordernum;       //优先级
    
    



    // Constructors

    /** default constructor */
    public KsWebsite() {
    }

    
    /** full constructor */
    public KsWebsite(long navigateid, String name, String url, int status, int recommend) {
        this.navigateid = navigateid;
        this.name = name;
        this.url = url;
        this.status = status;
        this.recommend = recommend;
    }

    
   
    public KsWebsite(long navigateid, String name, String url, int status,
			int recommend, String logo) {
		super();
		this.navigateid = navigateid;
		this.name = name;
		this.url = url;
		this.status = status;
		this.recommend = recommend;
		this.logo = logo;
	}

	public KsWebsite(long navigateid, String name, String url, int status,
			int recommend, String logo, int ordernum) {
		super();
		this.navigateid = navigateid;
		this.name = name;
		this.url = url;
		this.status = status;
		this.recommend = recommend;
		this.logo = logo;
		this.ordernum = ordernum;
	}


	// Property accessors
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="web_gen")
    @SequenceGenerator(name="web_gen",sequenceName="KS_WEBSITE_SEQ")
    @Column(name="ID", unique=true, nullable=false, precision=20, scale=0)
    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    @Column(name="NAVIGATEID", precision=20, scale=0)
    public long getNavigateid() {
        return this.navigateid;
    }
    
    public void setNavigateid(long navigateid) {
        this.navigateid = navigateid;
    }
    
    @Column(name="NAME", length=30)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="URL", length=200)
    public String getUrl() {
        return this.url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    @Column(name="STATUS", precision=1, scale=0)
    public int getStatus() {
        return this.status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    @Column(name="RECOMMEND", precision=1, scale=0)
    public int getRecommend() {
        return this.recommend;
    }
    
    public void setRecommend(int recommend) {
        this.recommend = recommend;
    }

    @Column(name="ORDERNUM", precision=5, scale=0)
    public int getOrdernum() {
		return ordernum;
	}


	public void setOrdernum(int ordernum) {
		this.ordernum = ordernum;
	}


	@Column(name="LOGO", length=200)
	public String getLogo() {
		return logo;
	}


	public void setLogo(String logo) {
		this.logo = logo;
	}
   








}